<template>
  <div>
    <van-nav-bar @click-left="$router.push('/personal')" title="我的收藏" left-arrow > </van-nav-bar>
    <newsItem v-for="item in showStar" :key="item.id" :obj="item"></newsItem>
  </div>
</template>

<script>
import newsItem from "@/components/newsltem.vue";
import { myStar } from "@/api/news";
export default {
    components: {
        newsItem
    },
  data() {
    return {
      showStar: [],
    };
  },
  created() {
    myStar().then((res) => {
      console.log(17, res);
      this.showStar = res.data.data
      console.log(this.showStar);
    });
  },
};
</script>

<style>
</style>